package com.zhuqi.linkedlist.doubly;

import java.util.Collections;

/**
 * <p>测试双向链表</p>
 * Copyright: Copyright (C) 2023 YinTa, Inc. All rights reserved.
 * @author zhuqi
 * @since 2023/6/13 15:42
 */
public class Test {

	public static void main(String[] args) {
		DoublyLinkedList<Integer> doublyLinkedList = getDoublyLinkedList();

		// DoublyLinkedList<Integer>.Node<Integer> node = doublyLinkedList.findNode(11);

		reverseLinkedList(doublyLinkedList.getFirst());
		System.out.println(doublyLinkedList);
	}

	private static void reverseLinkedList(DoublyLinkedList<Integer>.Node<Integer> first) {

	}


	private static DoublyLinkedList getDoublyLinkedList() {
		DoublyLinkedList<Integer> doublyLinkedList = new DoublyLinkedList();

		doublyLinkedList.addLast(1);
		doublyLinkedList.addLast(2);
		doublyLinkedList.addLast(3);
		doublyLinkedList.addLast(4);
		doublyLinkedList.addLast(5);
		doublyLinkedList.addLast(6);
		return doublyLinkedList;
	}




}
